package xib;


/**
 *
 * @author xavierds
 */
public interface Page {

    /**
     * Obtain the height from the page.
     * @return Integer
     */
    public int getHeight();

    /**
     * Obtain the width from the page.
     * @return Integer
     */
    public int getWidth();

    /**
     * Obtain the panel in the position.
     * @param position must be between 1 and the quantity of panels.
     * @return Panel
     * @throws IllegalArgumentException if the position is out of range.
     */
    public Panel getPanel(int position);

    /**
     * Obtain the quantity of panels presents
     * @return Integer
     */
    public int getQuantityOfPanels();

    /**
     * Obtain the relative panel in the especific position
     * @param width
     * @param height
     * @return Panel
     */
    public Panel getPanelByLocation(int locationX, int locationY);
    
}
